<%--suppress ALL --%>
<%@ page language="java" pageEncoding="UTF-8"
         contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <%@ include file="/common/common.jsp" %>
    <meta name="format-detection"
          content="telephone=no,email=no,date=no,address=no">
    <title>收单详情成功</title>
    <link rel="stylesheet" type="text/css"
          href="${ctx }/statics/aui/css/aui.css"/>

    <style type="text/css">
        .refresh_test {
            font-family: PingFangSC-Regular;
            font-size: 14px;
            color: #666666;
            line-height: 21px;
            text-align: center;
        }

        .receivables_error {
            font-family: PingFangSC-Regular;
            font-size: 18px;
            color: #333333;
            text-align: center;
        }

        .receivables_text {
            font-family: PingFangSC-Regular;
            font-size: 15px;
            color: #666666;
            line-height: 30px;
            text-align: right;
        }

        .receivables_amt {
            font-family: PingFangSC-Regular;
            font-size: 20px;
            color: #333333;
            line-height: 21px;
            text-align: right;
        }
    </style>

</head>

<body>

<section class="aui-content-padded">
    <center>
        <div style="margin-top: 35px;">
            <img alt="错误图标"
                 src="<c:choose>
				<c:when test="${dateGroupingTk.payResult==0 }">${ctx }/statics/aui/images/success1.png</c:when>
					<c:otherwise>${ctx }/statics/aui/images/fail.png</c:otherwise>
				</c:choose>">
        </div>
    </center>
    <center>
        <p class="receivables_error" style="margin-top: 8px;">
            <!-- 记得修改 -->
            <c:choose>
                <c:when test="${dateGroupingTk.payResult==0 }">收款成功</c:when>
                <c:when test="${dateGroupingTk.payResult==1 }">

                    <c:choose>
                        <c:when test="${dateGroupingTk.status==11 }">未支付</c:when>
                        <c:when test="${dateGroupingTk.status==4 }">已关闭</c:when>
                        <c:otherwise>收款失败</c:otherwise>
                    </c:choose>

                </c:when>
                <c:otherwise>收款异常</c:otherwise>
            </c:choose>
        </p>
    </center>

    <c:if test="${dateGroupingTk.payResult==1&&not empty dateGroupingTk.remark }">
        <center>
            <div style="margin-top: 24px;">
                <p class="refresh_test aui-ellipsis-1">失败原因：${dateGroupingTk.remark}</p>
            </div>
        </center>
    </c:if>
    <c:if test="${dateGroupingTk.payResult>1 }">
        <center>
            <div style="margin-top: 24px;">
                <p class="refresh_test">刷新试试</p>
                <!-- 记得修改 -->
            </div>
        </center>
    </c:if></section>
<section class="aui-content">
    <ul class="aui-list">

        <li class="aui-list-item" style="border-bottom-color: #FFFFFF">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-title receivables_text">实收金额</div>
                <div class="aui-list-item-right receivables_amt">+ ${dateGroupingTk.amount }</div>
            </div>
        </li>
        <li class="aui-list-item">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-title receivables_text">订单金额</div>
                <div class="aui-list-item-right receivables_amt">+ ${dateGroupingTk.amount }</div>
            </div>
        </li>
        <li class="aui-list-item" style="border-bottom-color: #FFFFFF">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-title receivables_text">交易时间</div>
                <div class="aui-list-item-right ">
                    <fmt:formatDate value="${dateGroupingTk.orderdate }"
                                    pattern="yyyy-MM-dd HH:mm:ss"/>
                </div>
            </div>
        </li>
        <li class="aui-list-item" style="border-bottom-color: #FFFFFF">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-title receivables_text">付款方式</div>
                <div class="aui-list-item-right" title="${dateGroupingTk.resource }">
                    <c:choose>
                        <c:when test="${dateGroupingTk.resource==0 }">微信</c:when>
                        <c:when test="${dateGroupingTk.resource==1 }">支付宝</c:when>
                        <c:otherwise>其它</c:otherwise>
                    </c:choose>
                </div>
            </div>
        </li>
        <li class="aui-list-item" style="border-bottom-color: #FFFFFF">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-title receivables_text">付款方</div>
                <div class="aui-list-item-right">
                    <c:choose>
                        <c:when test="${dateGroupingTk.resource==0 }">微信用户:  ${dateGroupingTk.wxNickName2 }</c:when>
                        <c:when test="${dateGroupingTk.resource==1 }">支付宝用户:  ${dateGroupingTk.wxNickName2 }</c:when>
                        <c:otherwise>其它用户</c:otherwise>
                    </c:choose>
                </div>
            </div>
        </li>
        <li class="aui-list-item" style="border-bottom-color: #FFFFFF">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-title receivables_text">订单号</div>
                <div class="aui-list-item-right">${dateGroupingTk.recordNo }</div>
            </div>
        </li>
		<li class="aui-list-item" style="border-bottom-color: #FFFFFF">
            <div class="aui-list-item-inner">
                <div class="aui-list-item-title receivables_text">用户备注</div>
                <div class="aui-list-item-right">${dateGroupingTk.payremark }</div>
            </div>
        </li>

        <c:if test="${dateGroupingTk.payResult==0 }">
            <li class="aui-list-item" style="border-bottom-color: #FFFFFF">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-title receivables_text">收单流水号</div>
                    <div class="aui-list-item-right">${dateGroupingTk.transactionId }</div>
                </div>
            </li>
            <li class="aui-list-item" style="border-bottom-color: #FFFFFF">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-title receivables_text">交易商户</div>
                    <div class="aui-list-item-right aui-ellipsis-1"
                         title="${dateGroupingTk.busId }">${dateGroupingTk.shopname }</div>
                </div>
            </li>
            <%--<li class="aui-list-item" style="border-bottom-color: #FFFFFF">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-title receivables_text">结算金额</div>
                    <div class="aui-list-item-right"
                         title="${dateGroupingTk.settlementAmount}">${dateGroupingTk.settlementAmount}</div>
                </div>
            </li>
            <li class="aui-list-item" style="border-bottom-color: #FFFFFF">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-title receivables_text">手续费(${dateGroupingTk.payRate}%)</div>
                    <div class="aui-list-item-right">${dateGroupingTk.serviceCharge}</div>
                </div>
            </li>--%>
        </c:if>


    </ul>
</section>
<c:if test="${ipayprodauthority == 1}">
<c:if test="${dateGroupingTk.payResult==0 }">
    <section class="aui-content"
             style="margin-top: 44px; padding-left: 20px; padding-right: 20px;">
        <p>
            <c:if test="${tkButtonShow}">
        <div name="refund" class="aui-btn aui-btn-info  aui-btn-block"
             onclick="location='${ctx}/trading/toRefund?recordNo=${dateGroupingTk.recordNo}'">退款
        </div>
        </c:if>
        </p>
    </section>
</c:if>
</c:if>
<br><br>
</body>
<script type="text/javascript" src="script/api.js"></script>
<script type="text/javascript">

</script>
</html>
